//
//  LBReactBridge+Native.m
//  LBReact
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "LBReactBridge+Native.h"

#import <objc/runtime.h>

#import <LBFoundation/LBFoundation.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <LBRouter/LBRouter.h>
#import "LBReactConfigurationHeader.h"

char const LBReactBridgeDelegateKey;

@implementation LBReactBridge (Native)

- (void)setDelegate:(id<LBReactBridgeNativeDelegate>)delegate {
    objc_setAssociatedObject(self, &LBReactBridgeDelegateKey, delegate, OBJC_ASSOCIATION_ASSIGN);
}

- (id<LBReactBridgeNativeDelegate>)delegate {
    return objc_getAssociatedObject(self, &LBReactBridgeDelegateKey);
}



@end
